package com.ecoolex.discount.sales.core.manager;

import com.ecoolex.discount.sales.core.dao.UPlanCouponDAO;
import com.ecoolex.discount.sales.entity.UPlanCoupon;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UPlanCouponManager {
    @Autowired
    private UPlanCouponDAO dao;

    public UPlanCoupon save(UPlanCoupon entity){
        dao.insert(entity);
        return entity;
    }

    public UPlanCoupon updateStatus(UPlanCoupon entity){
        dao.updateByPrimaryKeySelective(entity,UPlanCoupon.Column.status);
        return entity;
    }


}